package org.gilgamesh.stool.core.time;

import cn.hutool.core.date.DateField;
import org.gilgamesh.stool.core.time.custom.CustomDate;
import org.junit.jupiter.api.Test;

public class TestTimeModule {

    @Test
    public void testCustomDate(){
        CustomDate date = new CustomDate();
        System.out.println(date.getTime());
        String format = date.yesterday().beginOfDay().format();
        System.out.println(format);
        String s = date.yesterday().beginOfDay().format_CHINESE();
        System.out.println(s);
        System.out.println();

        CustomDate offset = date.offset(DateField.DAY_OF_YEAR, 1);
        System.out.println(offset.format_CHINESE());

        System.out.println(date.lastWeek().end().format_ISO8601());
    }
}
